package com.stone.springboot.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Stone on 2017/7/11.
 */
@Configuration
@ConfigurationProperties(prefix = "my")
public class Config {

    private List<String> servers = new ArrayList<>();

    public List<String> getServers() {
        return this.servers;
    }
}
